package com.coding.pojo;

import java.io.Serializable;
import java.util.List;
import java.util.Objects;

/**
 * post
 * @author 
 */
public class Post implements Serializable {
    private Integer post_id;

    private Integer post_class_id;

    private Integer post_group_id;

    private Integer post_place_id;

    private Integer post_user_id;

    private Integer post_image_id;

    private Integer post_video_id;

    private Integer post_voice_id;

    private String post_title;

    private String post_content;

    private Integer post_likes;

    private Integer post_collect;

    private Integer post_comments;

    private String post_more1;

    private String post_more2;

    private String post_time;

    private int post_likes_status;

    private int post_collect_status;




    private OssImages ossImages;

    private Video video;

    private User user;

    private Group group;

    private Theclass theclass;

    private List<OssImages> ossImagesList;

    public List<OssImages> getOssImagesList() {
        return ossImagesList;
    }

    public void setOssImagesList(List<OssImages> ossImagesList) {
        this.ossImagesList = ossImagesList;
    }

    private static final long serialVersionUID = 1L;

    public int getPost_likes_status() {
        return post_likes_status;
    }

    public void setPost_likes_status(int post_likes_status) {
        this.post_likes_status = post_likes_status;
    }

    public int getPost_collect_status() {
        return post_collect_status;
    }

    public void setPost_collect_status(int post_collect_status) {
        this.post_collect_status = post_collect_status;
    }

    public static long getSerialVersionUID() {
        return serialVersionUID;
    }

    public OssImages getOssImages() {
        return ossImages;
    }

    public void setOssImages(OssImages ossImages) {
        this.ossImages = ossImages;
    }

    public Video getVideo() {
        return video;
    }

    public void setVideo(Video video) {
        this.video = video;
    }

    public User getUser() {
        return user;
    }

    public void setUser(User user) {
        this.user = user;
    }

    public Integer getPost_id() {
        return post_id;
    }

    public void setPost_id(Integer post_id) {
        this.post_id = post_id;
    }

    public Group getGroup() {
        return group;
    }

    public void setGroup(Group group) {
        this.group = group;
    }

    public Theclass getTheclass() {
        return theclass;
    }

    public void setTheclass(Theclass theclass) {
        this.theclass = theclass;
    }

    public Integer getPost_class_id() {
        return post_class_id;
    }

    public void setPost_class_id(Integer post_class_id) {
        this.post_class_id = post_class_id;
    }

    public Integer getPost_group_id() {
        return post_group_id;
    }

    public void setPost_group_id(Integer post_group_id) {
        this.post_group_id = post_group_id;
    }

    public Integer getPost_place_id() {
        return post_place_id;
    }

    public void setPost_place_id(Integer post_place_id) {
        this.post_place_id = post_place_id;
    }

    public Integer getPost_user_id() {
        return post_user_id;
    }

    public void setPost_user_id(Integer post_user_id) {
        this.post_user_id = post_user_id;
    }

    public Integer getPost_image_id() {
        return post_image_id;
    }

    public void setPost_image_id(Integer post_image_id) {
        this.post_image_id = post_image_id;
    }

    public Integer getPost_video_id() {
        return post_video_id;
    }

    public void setPost_video_id(Integer post_video_id) {
        this.post_video_id = post_video_id;
    }

    public Integer getPost_voice_id() {
        return post_voice_id;
    }

    public void setPost_voice_id(Integer post_voice_id) {
        this.post_voice_id = post_voice_id;
    }

    public String getPost_title() {
        return post_title;
    }

    public void setPost_title(String post_title) {
        this.post_title = post_title;
    }

    public String getPost_content() {
        return post_content;
    }

    public void setPost_content(String post_content) {
        this.post_content = post_content;
    }

    public Integer getPost_likes() {
        return post_likes;
    }

    public void setPost_likes(Integer post_likes) {
        this.post_likes = post_likes;
    }

    public Integer getPost_collect() {
        return post_collect;
    }

    public void setPost_collect(Integer post_collect) {
        this.post_collect = post_collect;
    }

    public Integer getPost_comments() {
        return post_comments;
    }

    public void setPost_comments(Integer post_comments) {
        this.post_comments = post_comments;
    }

    public String getPost_more1() {
        return post_more1;
    }

    public void setPost_more1(String post_more1) {
        this.post_more1 = post_more1;
    }

    public String getPost_more2() {
        return post_more2;
    }

    public void setPost_more2(String post_more2) {
        this.post_more2 = post_more2;
    }

    public String getPost_time() {
        return post_time;
    }

    public void setPost_time(String post_time) {
        this.post_time = post_time;
    }

    @Override
    public boolean equals(Object o) {
        if (this == o) return true;
        if (o == null || getClass() != o.getClass()) return false;
        Post post = (Post) o;
        return Objects.equals(post_id, post.post_id) &&
                Objects.equals(post_class_id, post.post_class_id) &&
                Objects.equals(post_group_id, post.post_group_id) &&
                Objects.equals(post_place_id, post.post_place_id) &&
                Objects.equals(post_user_id, post.post_user_id) &&
                Objects.equals(post_image_id, post.post_image_id) &&
                Objects.equals(post_video_id, post.post_video_id) &&
                Objects.equals(post_voice_id, post.post_voice_id) &&
                Objects.equals(post_title, post.post_title) &&
                Objects.equals(post_content, post.post_content) &&
                Objects.equals(post_likes, post.post_likes) &&
                Objects.equals(post_collect, post.post_collect) &&
                Objects.equals(post_comments, post.post_comments) &&
                Objects.equals(post_more1, post.post_more1) &&
                Objects.equals(post_more2, post.post_more2) &&
                Objects.equals(post_time, post.post_time) &&
                Objects.equals(ossImages, post.ossImages) &&
                Objects.equals(video, post.video) &&
                Objects.equals(user, post.user) &&
                Objects.equals(group, post.group) &&
                Objects.equals(theclass, post.theclass);
    }

    @Override
    public int hashCode() {
        return Objects.hash(post_id, post_class_id, post_group_id, post_place_id, post_user_id, post_image_id, post_video_id, post_voice_id, post_title, post_content, post_likes, post_collect, post_comments, post_more1, post_more2, post_time, ossImages, video, user, group, theclass);
    }

    @Override
    public String toString() {
        return "Post{" +
                "post_id=" + post_id +
                ", post_class_id=" + post_class_id +
                ", post_group_id=" + post_group_id +
                ", post_place_id=" + post_place_id +
                ", post_user_id=" + post_user_id +
                ", post_image_id=" + post_image_id +
                ", post_video_id=" + post_video_id +
                ", post_voice_id=" + post_voice_id +
                ", post_title='" + post_title + '\'' +
                ", post_content='" + post_content + '\'' +
                ", post_likes=" + post_likes +
                ", post_collect=" + post_collect +
                ", post_comments=" + post_comments +
                ", post_more1='" + post_more1 + '\'' +
                ", post_more2='" + post_more2 + '\'' +
                ", post_time='" + post_time + '\'' +
                ", ossImages=" + ossImages +
                ", video=" + video +
                ", user=" + user +
                ", group=" + group +
                ", theclass=" + theclass +
                '}';
    }
}